﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML>
<html lang="ko">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><tiles:insertAttribute name="title" /></title>
<!--[if IE]>
<style type="text/css" media="screen, print"> 
@font-face {  
	font-family:ngeot;  
	src:url(/font/NanumGothic.eot);  
} 
</style>
<![endif]-->
<style type="text/css" media="screen, print">
@font-face {
	font-family: ngttf;
	src: url(/font/NanumGothic.ttf);
}
</style>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="/css/uniform.css" />
<link rel="stylesheet" href="/css/select2.css" />
<link rel="stylesheet" href="/css/unicorn.main.css" />
<link rel="stylesheet" href="/css/kissoft.grey.css" class="skin-color" />
</head>
<body>
	<div id="header">
		<h1>
			<a href="/announce/list.do">Project Admin</a>
		</h1>
	</div>

	<div id="user-nav" class="navbar navbar-inverse">
		<tiles:insertAttribute name="usernav" />
	</div>

	<div id="sidebar">
		<tiles:insertAttribute name="sidebar" />
	</div>

	<div id="content">
		<div id="content-header">
			<h1>${title}</h1>
		</div>
		<div id="breadcrumb">
			<a href="/main.do" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>홈</a>
			<c:if test="${title != '메인 페이지'}">
				<a>${title}</a>
			</c:if>
		</div>

		<div class="container-fluid">
			<tiles:insertAttribute name="content" />
		</div>
		<tiles:insertAttribute name="footer" />
	</div>

	<script src="/js/jquery.min.js"></script>
	<script src="/js/jquery.ui.custom.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script src="/js/jquery.uniform.js"></script>
	<script src="/js/select2.min.js"></script>
	<script src="/js/jquery.dataTables.min.js"></script>
	<script src="/js/unicorn.js"></script>
	<script src="/js/unicorn.tables.js"></script>
	<script lang="javascript">
		$(function() {
			/* sidebar 활성화 */
			var menu = '${menu}';
			var submenu = '${submenu}';

			var sidebar = $('#sidebar');
			if (sidebar.hasClass('active')) {
				sidebar.removeClass('active');
			}

			if (menu) {
				$('#' + menu).addClass('active');
				if (submenu) {
					$('#' + submenu).addClass('active');
				}
			}
		});
	</script>
</body>
</html>
